#ifndef _SKIN_UTIL_H_
#define _SKIN_UTIL_H_

namespace NateOnSkinUtil
{
	CString GetIndexToken(LPCTSTR szSrc, LPCTSTR szSplit, int nIndex);
	CString GetFullPath();
	CString ExtractFilePath(CString Filename);
	CString ExtractFileName(CString FilePath);

	unsigned long GetCRC32(LPCTSTR strSource);
	unsigned int crc32(unsigned char *address, unsigned int size, unsigned int crc);	
	unsigned int elf_hash(const unsigned char *name);

	int GetGradientStyleFromString(CString strGradientStyle);
	LONG GetColorFromHexString(CString strColor);
	void FillGradientToRect(CDC* dc, int nGradientStyle, LPRECT rect, COLORREF crFirst, COLORREF crSecond);

}

#endif